// 可拖动表格样式
.ruifox-table{
  width: 100%;
  border-collapse:collapse;
  thead{
    tr{
      width: 100%;
      th{
        font-size: 13px;
        text-align: left;
        height: 55px;
        color: #333333;
        padding: 0;
        border-bottom: 1px solid #C4C9D5;
        border-top: 1px solid #C4C9D5;
      }
      th:nth-child(7){
        padding-left: 10px;
      }
    }
  }
  tbody{
    tr{
      width: 100%;
      cursor: move;
      td{
        height: 48px;
        border-bottom: 1px solid #E4E4E4;
        font-size: 14px;
        width: 140px;
        min-width: 120px;
        overflow: hidden;
        white-space: nowrap;
      }
      td:nth-last-child(1){
        padding-right: 60px;
      }
      td:nth-child(6){
        border-right: 1px solid #E4E4E4;
      }
      td:nth-child(7){
        padding-left: 10px;
      }
      td.table-td-check{
        width: 20px;
        min-width: 20px;
      }
      td.table-td-time{
        width: 190px;
      }
      td.table-td-sn{
        font-size: 14px;
        width: 36px;
        color: #AAAAAA;
        min-width: 36px;
      }
      td.table-td-option{
        width: 140px;
        .el-dropdown-link{
          color: $mainColor;
          margin-top: 4px;
          margin-left: 5px;
          cursor: pointer;
        }
      }
      td.table-td-title{
        min-width: 450px;
        max-width: 500px;
        width: 35%;
        .title-box{
          display: flex;
          align-items: center;
          p{
            @include textEllipsis(16px,1)
          }
          .iconimg{
            display: inline-block;
            width: 16px;
            margin-right: 5px;
            i{
              color: #2CBF77;
              font-size: 15px;
            }
          }
          .a-icon{
            display: inline-block;
            width: 16px;
            background-color: $mainColor;
            color: $white;
            line-height: 16px;
            text-align: center;
            i{
              font-size: 14px;
            }
          }
          .p-icon{
            display: flex;
            align-items: center;
            width: 20px;
            color: #2CBF77;
            i{
              font-size: 18px;
            }
          }
        }
      }
      td.table-td-top{
        width: 18px;
        min-width: 18px;
        .ding-yes{
          display: inline-block;
          width: 16px;
          height: 16px;
          font-size: 12px;
          color: $white;
          line-height: 16px;
          text-align: center;
          background-color: #FF5240;
          cursor: pointer;
          margin-right: 5px;
        }
        .ding-yes:hover{
          background-color: #f78a7e;
        }
        .ding-no{
          display: inline-block;
          cursor: pointer;
          width: 16px;
          height: 16px;
          font-size: 12px;
          color: $white;
          line-height: 16px;
          text-align: center;
          background-color: #D7D7D7;
          margin-right: 5px;
          visibility: hidden;
        }
        .ding-no:hover{
          background-color: #817f7f;
        }
      }
    }
    tr:hover{
      background-color: $checkColor;
      td.table-td-top .ding-no{
        visibility: visible;
      }
    }
    .drag-class{
      background-color: $focusContent;
    }
  }
}
.ruifox-list{
  div.no-data{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    width: 100%;
    height: 400px;
    i{
      font-size: 80px;
      color: $placeholderColor;
    }
    span{
      font-size: 14px;
      color: $placeholderColor;
      margin-top: 10px;
    }
  }
  .choose-title{
    position: absolute;
    top: 16px;
    right:20px;
    z-index: 100;
    cursor: pointer;
    i{
      color: $mainColor;
      font-size: 14px;
    }
  }
}
//融媒体卡片样式
.wechat-card-box{
  .wechat-card{
    box-sizing: border-box;
    background-color: $white;
    height: 120px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    padding: 15px 20px 15px 10px;
    overflow: hidden;
    position: relative;
    transition: background-color 0.2s, box-shadow 0.2s, border-color 0.2s;
    &.card-focus{
      background-color: $focusContent;
      border-color: $hoverColor;
      box-shadow: 0 0 10px $focusContent;
    }
    .wechat-card-sn{
      width: 16px;
      margin-right: 10px;
      position: relative;
      z-index: 1;
    }
    .wechat-thumb {
      width: 160px;
      height: 90px;
      margin-right: 20px;
      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }

    .wechat-card-title{
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      .card-title-top{
        display: flex;
        span.model-tip{
          display: block;
          box-sizing: border-box;
          height: 20px;
          line-height: 20px;
          color: $mainColor;
          margin-right: 10px;
          i{
            font-size: 20px;
          }
        }
        p{
          @include textEllipsis(20px,1);
          font-size: 16px;
          a {
            text-decoration: none;
          }
        }
      }
      .card-title-bottom{
        margin-top: 15px;
        .title-tips{
          span{
            margin-right: 10px;
            font-size: 14px;
            color: $black_tips;
          }
        }
        .tags-platform {
          display: flex;
          align-items: center;
          margin-top: 15px;
          .tags {
            // margin-right: 20px;
          }
          &>span {
            i {
              font-size: 14px;
              line-height: 1;
              margin-right: 10px;
              &.wechat {
                color: #43A677;
              }
            }
          }
        }
      }
    }
    .wechat-card-state{
      height: 60px;
      display: flex;
      justify-content: space-between;
      flex-direction: column-reverse;
      position: absolute;
      right: 20px;
      .card-state-top{
        display: flex;
        p.ready-time{
          font-size: 14px;
          color: #AAAAAA;
          margin-right: 10px;
          u{
            text-decoration: none;
            color: #FF5240;
          }
        }
        span{
          display: block;
          height: 22px;
          font-size: 14px;
          color: $white;
          line-height: 22px;
          padding: 0 5px;
          border-radius: 2px;
          width: max-content;
          float: right;
        }
        span.then-release{
          background-color: #2CBF77;
        }
        span.ready-release{
          background-color: #50CDD0;
        }
        span.on-review{
          background-color: #FF5240;
        }
        span.remove-release{
          background-color: #FF5240;
        }
        span.been-filed{
          background-color: #6AB28F;
        }
        span.then-offline{
          background-color: #AAAAAA;
        }
        span.ready-review{
          background-color: #E6C552;
        }
        span.ready-offline{
          background-color: #FF9700;
        }
        span.on-archived{
          background-color: #3980EA;
        }
        span.on-info{
          background-color: #AAAAAA;
        }
      }
      .card-state-bottom{
        span{
          font-size: 14px;
          color: $black_tips;
          @include textEllipsis(14px,1)
        }
      }
    }
    .wechat-card-options{
      position: absolute;
      right: 20px;
      height: 72px;
      // width: 300px;
      display:flex;
      align-items: center;
      flex-direction: row-reverse;
      &.no-width {
        width: auto;
      }
      .inner-card-options{
        .option-btn{
          i{
            color: $mainColor;
            margin-right: 2px;
          }
          &.is-disabled{
            i{
              color: #aaa;
            }
          }
        }
        .more-btn{
          i{
            font-size: 24px;
          }
        }
      }
    }
    .ruifox-card-options{
      position: absolute;
      background: linear-gradient(to right,rgba(0,0,0,0) 0%,$focusContent 20%,$focusContent 100%);
      right: 20px;
      height: 72px;
      width: 310px;
      display:flex;
      align-items: center;
      flex-direction: row-reverse;
      &.no-width {
        width: auto;
      }
      .inner-card-options{
        .option-btn{
          i{
            color: $mainColor;
            margin-right: 2px;
          }
          &.is-disabled{
            i{
              color: #aaa;
            }
          }
        }
        .more-btn{
          i{
            font-size: 24px;
          }
        }
      }
    }
    // 进入后和离开前保持原位
    .state-enter-to,
    .state-leave-from,
    .options-enter-to,
    .options-leave-from{
      opacity: 1;
    }
    // 设置进入和离开过程中的动画时长0.5s
    .state-enter-to,
    .state-leave-from,
    .options-enter-active,
    .options-leave-active,
    {
      transition: all 0.2s;
    }
    // 进入前和离开后为透明，并在右侧20px位置
    .state-enter-to,
    .state-leave-from,
    .options-enter-from,
    .options-leave-to {
      opacity: 0;
    }
    .options-enter-from{
      transform: translateX(20px);
    }
    .options-leave-to{
      transform: translateX(20px);
    }
  }
  .wechat-card+.wechat-card{
    margin-top: 10px;
  }
}

